package common.controls.dialog
{
	import common.controls.windows.AKWindow;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	
	/**  
	 * 
	 * @author carrey
	 * */ 
	public class DialogView extends AKWindow
	{
		public var txtTitle:TextField;
		public var txtContent:TextField;
		public var btnYes:SimpleButton;
		public var btnNo:SimpleButton;
		public var btnClose:SimpleButton;
		public function DialogView(owner:DisplayObjectContainer)
		{
			super(owner);
			_init();
		}
		public function _init():void
		{
//			var asset:Sprite = AlertDialogAsset as Sprite;
//			this.addChild(asset);
//			txtTitle = asset.getChildByName('txtTitle') as TextField;
//			txtContent = asset.getChildByName('txtContent') as TextField;
//			txtContent.autoSize = TextFieldAutoSize.CENTER; 
//			txtContent.background = false;
//			txtContent.border = false;
//			txtContent.wordWrap=true;
//			txtContent.multiline=true;
//			
//			btnYes = asset.getChildByName('btnYes') as SimpleButton;
//			btnNo = asset.getChildByName('btnNo') as SimpleButton;
//			btnClose = asset.getChildByName('btnClose') as SimpleButton;
//			setCenterLocation();
		}
	}
}